<? 
		if(isset($_POST['btnsubmit']))
		{
			require("required/dbconnect.php"); 
			
			$title=mysql_escape_string($_POST['title']);
			$row_no=$_POST['row_no'];
			$order_id=$_POST['order_id'];
			
			$insert=mysql_query("insert into os_custserv_cat(cat_name,row,order_id)value('$title',$row_no,$order_id)")or die(mysql_error());
			header("Location:custserv.php");	
		
		}
		else
		{
				require("required/dbconnect.php"); 
				require("required/function.php");
				require("required/header.php"); 
				
?>
				
				<table width="100%"  cellpadding="0" cellspacing="5" height="300">
				
					<td class="solidborder" width="84%" align="left" valign="top">
					
						<form action="<?= $_SERVER['PHP_SELF'] ?>" name="frm" method="post">
						<table width="100%">
						
						<td class="title" colspan="3">
						<strong>Add Customer Service Title</strong>
						
						
						
						</td>
						
						
						<tr>
							<td>Title</td><td>:</td><td><input class="text" type="text" name="title" size="30" value="" maxlength="200"></td>
						</tr>
						<tr>
							<td>Row number</td><td>:</td><td><input class="text" type="text" name="row_no" size="2" value="" maxlength="1"></td>
						</tr>
						<tr>
							<td>Order ID</td><td>:</td><td><input class="text" type="text" name="order_id" size="2" value="" maxlength="1"></td>
						</tr>
						
						
						<tr>
							<td colspan="2"><input type="submit" value="Submit" name="btnsubmit"></td>
						</tr>
						</table>
						</form>
					</td>
				 
				</table>
<? }require("required/footer.php"); ?>